package com.etc.traval.bizimpl;

import java.util.List;

import com.etc.traval.biz.PlacecomBiz;
import com.etc.traval.dao.PlacecomDao;
import com.etc.traval.daoimpl.PlacecomDaoImpl;
import com.etc.travel.entity.Place;
import com.etc.travel.entity.Placecom;
import com.etc.travel.entity.User;

public class PlacecomBizImpl implements PlacecomBiz{

	PlacecomDao dao=new PlacecomDaoImpl(); 
	
	@Override
	public List<Placecom> queryAllPlacecom(int page,int size) {
		return dao.queryAllPlacecom(page,size);
	}

	@Override
	public List<Placecom> queryPlacecomByUser(User user,int page,int size) {
		return dao.queryPlacecomByUser(user,page,size);
	}

	@Override
	public List<Placecom> queryPlacecomByPlace(Place place,int page,int size) {
		return dao.queryPlacecomByPlace(place,page,size);
	}

	@Override
	public Placecom queryPlacecomById(int id) {
		return dao.queryPlacecomById(id);
	}

	@Override
	public boolean deletePlacecomById(int id) {
		return dao.deletePlacecomById(id);
	}

	@Override
	public boolean addPlacecom(Placecom placecom) {
		return dao.addPlacecom(placecom);
	}

	@Override
	public int queryCountByPlace(Place place) {
		return dao.queryCountByPlace(place);
	}

	@Override
	public List<Place> queryPlaceByCom(int size, int page) {
		// TODO Auto-generated method stub
		return dao.queryPlaceByCom(size, page);
	}

}
